package com.goods.business.controller;

import com.goods.business.pojo.InStock;
import com.goods.business.service.InStockService;
import com.goods.common.error.SystemException;
import com.goods.common.vo.business.InStockDetailVO;
import com.goods.common.vo.business.InStockVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class InStockController {
    @Autowired
    InStockService inStockService;


    public List<InStockVO> inStockSelectQuery(Integer pageNum, Integer pageSize, Integer status) {
        return inStockService.inStockSelectQuery(pageNum,pageSize,status);
    }

    public InStockDetailVO selinStockDetaiList(Integer pageNum, Integer id) {
        return inStockService.selinStockDetaiList(pageNum,id);
    }

    public void inStockAddIntoStock(InStockVO inStockVO) throws SystemException {
        inStockService.inStockAddIntoStock(inStockVO);
    }
}
